﻿using Domain.Entitys;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configers
{
    public class SSDConfiger : IEntityTypeConfiguration<SSD>
    {
        public void Configure(EntityTypeBuilder<SSD> builder)
        {
            builder.ToTable(nameof(SSD));
            builder.HasKey(r => r.SdtId);
            builder.Property(r => r.StandardId);
            builder.Property(r => r.StandardName);
            builder.Property(r => r.ItemId);
            builder.Property(r => r.ItemName);
            builder.Property(r => r.Salary);
        }
    }
    }

